#include <stdio.h>
#include <string.h>

int main()
{	
	char user0[64] = "user", user[64];
	char passwd[64] = "123\n";
	FILE* fp = fopen("/etc/vsftpd/vuser_passwd.txt", "wb");
	for(int i = 0; i < 100; i ++) 
	{
		snprintf(user, sizeof(user), "%s%d\n", user0, i + 1);
		fwrite(user, strlen(user), 1, fp);
		fwrite(passwd, strlen(passwd), 1, fp);			
	}

	return 0; 
}
